package com.goods.business.mapper;

import com.github.pagehelper.PageInfo;
import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.ProductCategoryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {
    List<ProductCategoryTreeNodeVO> selectProductCategory();

    void addCategory(ProductCategoryVO productCategoryVO);

    void updateProductCategory(ProductCategoryVO productCategoryVO);


    ProductCategoryVO selectProductCategoryById(Long id);

    void deleteById(Long id);
}
